﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Manage/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<QianBuo.Lottery.Web.Areas.Manage.Models.AddManagerModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	添加管理员
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<fieldset class="fieldset">
    <legend>添加管理员</legend>
    <% Html.BeginForm(); %>
    <%=Html.ActionLink("列表","Index") %>
    <ul class="editlist">
        <li>
            <label class="label">
                状态：</label>
            <span class="spans">
                <%=Html.RadioButtonFor(p => p.State, Code.Models.AdminState.Locked, new {id="State_Locked" })%>
                <label for="State_Locked">
                    锁定</label>
                <%=Html.RadioButtonFor(p => p.State, Code.Models.AdminState.Normal, new { id = "State_Normal" })%>
                <label for="State_Normal">
                    正常</label>
                <%=Html.ValidationMessageFor(p=>p.State) %>
            </span></li>
        <li>
            <label class="label" for="RoleID">角色：</label>
            <%=Html.DropDownListFor(p=>p.RoleID,Model.RolesList) %>
            <%=Html.ValidationMessageFor(p=>p.RoleID) %>
        </li>
        <li>
            <label class="label" for="LoginName">登&nbsp;录&nbsp;名：</label>
            <%=Html.TextBoxFor(p=>p.LoginName) %>
            <%=Html.ValidationMessageFor(p=>p.LoginName) %>
        </li>
        <li>
            <label class="label" for="Password">登录密码：</label>
            <input type="password" id="Password" name="Password" />
            <%=Html.ValidationMessageFor(p=>p.Password) %>
        </li>
        <li>
            <label class="label" for="ConfirmPwd">确认密码：</label>
            <input type="password" id="ConfirmPwd" name="ConfirmPwd" />
            <%=Html.ValidationMessageFor(p=>p.ConfirmPwd) %>
        </li>
        <li class="btn">
            <input type="submit" value="添加" onclick="return confirm('确定提交吗？')" />
        </li>
    </ul>
    <% Html.EndForm(); %>
</fieldset>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="StyleAndScript" runat="server">
</asp:Content>
